import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
//国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//全局样式
import '@/assets/css/global.css'

import * as echarts from 'echarts'

import * as ELIcons from '@element-plus/icons-vue'
const app = createApp(App)
    .use(store)
    .use(router)                //按钮            国际化
    .use(ElementPlus, {size: 'small',  locale: zhCn })

    for (let iconName in ELIcons) {
        app.component(iconName, ELIcons[iconName])
    }

app.mount('#app')
app.echarts = echarts


